<html>
<head>
<title>WYATTWANG 自言自语</title>
<style type="text/css">

body {
background-color: #696969;
}

table {
font-size: 0.8em;
}
p.line {
border-bottom-style: dotted;
border-bottom-color: #778899;
border-bottom-width: 1px;
width: 100%;
padding-bottom: 5px;
padding-top: 22px;
}

#navpage {
position: absolute;
bottom: 30px;
width: 100%;
left: 0%;
padding: 10px 0 10px 0;
}

#mybody {
position: absolute;
margin-left: 12%;
margin-right: 12%;
padding: 70px 40px 20px 40px;
background: #F5F5F5;
}

#title {
position: absolute;
top: 0%;
width: 100%;
left: 0%;
background-color: #A52A2A;
padding: 10px 0 10px 0;
margin: 0;
font-size: 3em;
color: #fff;
}

#footer {
position: absolute;
bottom: : 0%;
width: 100%;
left: 0%;
background-color: #A52A2A;
padding: 10px 0 10px 0;
margin: 30px 0 0 0;
font-size: .8em;
color: #fff;
}

.pagination {
position: absolute;
background: #C0C0C0;
left: 0%;
width: 100%;
padding: 10px 0 10px 0;
margin: 0;
text-align: center;
font-size: 0.8em;
color: 	#2F4F4F;
}

a:link,a:visited {color:#900B09; background-color:transparent}
a:hover,a:active {color:#FF0000; background-color:transparent}

</style>
</head>

<body>
<div id="mybody">
<h1 id="title" align="center">WYATTWANG LOG</h1>
<h3>自己给自己说点话：</h3>
<form action="." method="post">
<table>
{{ form.as_table }}
</table>
<p align="center">
<input type="submit" value="Post Log" /></p>
</form>
<h2>我说的话都记录在下面：</h2>
<table>
{% for mylog in contacts.object_list %}
<tr><td><p class="line">{{ mylog.id }}/<b>{{ mylog.name }}</b>/{{ mylog.time }}</p></td></tr>
<tr><td>{% load markup %}{{ mylog.content|textile|safe }}</td></tr>
{% endfor %}
</table>

<div class="pagination">
<span class="step-links">
{% if contacts.has_previous %}
<a href="?page={{ contacts.previous_page_number }}">< Previous</a>
{% endif %}

<span class="current">
Page {{ contacts.number }} of {{ contacts.paginator.num_pages }}.
</span>

{% if contacts.has_next %}
<a href="?page={{ contacts.next_page_number }}">Next ></a>
{% endif %}
</span>
</div>

<div id="footer" align="center">WYATTWANG 自言自语 WyattWang,2010.Nginx+Django+fastCGI驱动,外加Bulefish 2.0.1.</div>

</div>
</body>
</html>
